<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <link rel="stylesheet" href="tpl/css/lib/swiper.min.css">
    <link rel="stylesheet" href="tpl/css/style.css">
    <link rel="stylesheet" href="tpl/css/app.css">
    <title>Document</title>
</head>
<body>
    <div id="container">
        
    </div>

    <script id="tpl" type="text/html">
        <div class="order-history-list">
            <div class="order-history-list-item">
                <div class="order-history-list-head">
                    5月订单
                    <i></i>
                </div>
                <ul class="order-history-list-content">
                    <li class="clearfix">
                        <div class="fr">
                            <div class="order-history-list-info">
                                <span>所选套餐</span>
                                <span>月享工作餐</span>
                            </div>
                            <div class="order-history-list-info">
                                <span>用餐份数</span>
                                <span>1000</span>
                            </div>
                            <div class="order-history-list-info">
                                <span>金额</span>
                                <span>￥18000</span>
                            </div>
                        </div>
                    </li>
                    <li class="clearfix">
                        <div class="fr">
                            <div class="order-history-list-info">
                                <span>所选套餐</span>
                                <span>精选会议餐</span>
                            </div>
                            <div class="order-history-list-info">
                                <span>用餐份数</span>
                                <span>1000</span>
                            </div>
                            <div class="order-history-list-info">
                                <span>金额</span>
                                <span>￥18000</span>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>

            <div class="order-history-list-item">
                <div class="order-history-list-head">
                    4月订单
                    <i></i>
                </div>
                <ul class="order-history-list-content">
                    <li class="clearfix">
                        <div class="fr">
                            <div class="order-history-list-info">
                                <span>所选套餐</span>
                                <span>月享工作餐</span>
                            </div>
                            <div class="order-history-list-info">
                                <span>用餐份数</span>
                                <span>1000</span>
                            </div>
                            <div class="order-history-list-info">
                                <span>金额</span>
                                <span>￥18000</span>
                            </div>
                        </div>
                    </li>
                    <li class="clearfix">
                        <div class="fr">
                            <div class="order-history-list-info">
                                <span>所选套餐</span>
                                <span>精选会议餐</span>
                            </div>
                            <div class="order-history-list-info">
                                <span>用餐份数</span>
                                <span>1000</span>
                            </div>
                            <div class="order-history-list-info">
                                <span>金额</span>
                                <span>￥18000</span>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </script>

    <script src="tpl/js/lib/jquery.min.js"></script>
    <script src="tpl/js/lib/swiper.min.js"></script>
    <script src="tpl/js/lib/laytpl.js"></script>
    <script src="tpl/js/app.js"></script>
    <script>
        $(document).ready(function($) {
            renderTpl({})

            $(".order-history-list-head").on('click', function(event) {
                event.preventDefault();
                $(this).toggleClass("active").siblings(".order-history-list-content").stop().slideToggle();
            });
        });
    </script>
</body>
</html>